<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>双向数据绑定</title>
</head>
<body>
    <div id="app">
        <!-- 单选 -->
        <input v-model="iptValue" type="checkbox">是否同意<br>
        <!-- 多选框 -->
        <input type="checkbox" value="念" v-model="arr">念<br>
        <input type="checkbox" value="璃" v-model="arr">璃<br>
        <input type="checkbox" value="望" v-model="arr">望<br>
        <!-- 下拉选框 -->
         <select v-model="isTrue" name="" id="">
            <option value="洛璃" label="">洛璃</option>
            <option value="洛水" label="">洛水</option>
            <option value="云璃" label="">云璃</option>
         </select>
    </div>
    <script src="../vue2.js"></script>
    <script>
        const vm = new Vue({
            el:'#app',
            data(){
                return{
                    iptValue: false,
                    arr: [],
                    isTrue: ''
                }
            },
            methods:{

            }
        })
    </script>
</body>
</html>